package cn.breeze.org.mapper;

import cn.breeze.basic.mapper.BaseMapper;
import cn.breeze.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByUsername(String username);

    // 根据employee主键id删除role
    void removeEmployeeIdRole(Long id);
    // 根据employee主键id批量保存role
    void saveEmployeeRole(@Param("id") Long id,@Param("ids") List<Long> roles);

    Employee loadByLogininfoId(Long logininfoId);
    // 根据店铺id查询员工信息集合
    List<Employee> loadByShopId(Long shopId);
}

